<style>
	.textboxfaqright{
		background:url(img/bgtextbox.jpg) repeat-x;
		height:22px;	
		border:solid 1px #CCC;
		width:250px;
		-webkit-border-radius:3px;
		-moz-border-radius:3px;
		-ms-border-radius:3px;
		border-radius:3px;
	}
	.textareafaqright{
		background:url(img/bgbox.jpg) repeat-x;
		height:22px;	
		border:solid 1px #CCC;
		width:250px;
		-webkit-border-radius:3px;
		-moz-border-radius:3px;
		-ms-border-radius:3px;
		border-radius:3px;
		height:100px;
	}
</style>
<div id="pathpage"><a href="{site_address}">Trang chủ</a>&nbsp;>&nbsp;Liên hệ</div>
 <div style="clear:both"></div>
 <div style="padding:5px;"><div class="dotset1">
    <!-- START BLOCK : noi_dung -->
    <div class="infocontact" style="padding:5px;">{content}</div>
    <!-- END BLOCK : noi_dung -->
              <div class="contactform" style="min-height:500px;">
                    
                    <form action="" id="contactform" method="post" onsubmit="return check_null_registform();" enctype="multipart/form-data">
                    <input type="hidden" name="gone" value="1" />
                    <table width="100%" border="0" cellspacing="0" cellpadding="5">
             
                 <!-- START BLOCK : thongbao -->
              <tr>
                <td colspan="2" align="center" valign="top"><h3 style="color:#F00;">{thongbao}</h3></td>
                </tr>
                 <!-- END BLOCK : thongbao -->
              <tr>
            <td valign="top"><table width="100%" border="0" align="center" cellpadding="4" cellspacing="4" style="margin-bottom:20px;">
                     
                     
                                <tr>
                                  <td width="20%" align="right" valign="top" class="style_nd"><span class="trang">Họ tên: (<span class="style1">*</span>) </span></td>
                                  <td width="40%" align="left" class="style_nd"><span class="style10">
                                    <label>
                                    <input name="name" type="text" class="textboxfaqright" id="name"  />
                                    </label>
                                    <div id="namemsg" class="mes_error"></div>
                                  </span></td>
                                </tr>
                            
                                <tr>
                                  <td align="right" valign="top" class="style_nd"><span class="trang">Điện thoại:</span></td>
                                  <td align="left" class="style_nd">
                                    <input name="phone" type="text" class="textboxfaqright" id="phone" />              
                                    <div id="phonemsg"></div>
                                   </td>
                                </tr>
                                <tr>
                                  <td align="right" valign="top" class="style_nd"><span class="trang">Email: (<span class="style1">*</span>) </span></td>
                                  <td align="left" class="style_nd">
                                    <input name="email" type="text" class="textboxfaqright" id="email" />               
                                    <div id="emailmsg" class="mes_error"></div>
                                  </td>
                                </tr>
                                 <tr>
                                  <td align="right" valign="top" class="style_nd"><span >Tiêu đề: (<span class="style1">*</span>) </span></td>
                                  <td align="left" class="style_nd">
                                    <input name="subject" type="text" class="textboxfaqright" id="subject" />   
                                    <div id="subjectmsg" class="mes_error"></div>
                                   </td>
                                </tr>
                                <tr>
                                  <td align="right" valign="top" ><span c>Nội dung liên hệ: (<span class="style1">*</span>) </span></td>
                                  <td align="left" class="style_nd"><span class="style10">
                                    <label>
                                    <textarea name="noidung"  rows="5"  id="noidung" class="textareafaqright"></textarea>
                                    <div id="messagemsg" class="mes_error"></div>
                                    </label>
                                  </span></td>
                                </tr>
                                
                                <tr>
                                  <td align="right" valign="top" class="style_nd">Mã bảo vệ(*) </td>
                                  <td align="left"> <input name="sercurity" type="text" id="sercurity"  style="width:100px" class="textboxfaqright"/>
                                  <img src="{site_address}lib/imagesercurity.php" name="imgCaptcha" align="absmiddle" id="imgCaptcha" /></td>
                                </tr>
                                <tr>
                                  <td colspan="2" class="style_nd"><table width="90%" border="0" align="left" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td width="56%" align="right"><label>
                                          <input class="btncontact" type="submit" name="Submit" value="Gửi" />
                                        </label></td>
                                        <td width="44%"><label>
                                          &nbsp;&nbsp;
                                          <input class="btncontact" type="reset" name="Submit2" value="Nhập lại" />
                                        </label></td>
                                      </tr>
                                  </table></td>
                                </tr>
                  </table></td>
                <td valign="top" style="padding-top:12px;">&nbsp;</td>
              </tr>
            </table>
            </form>
            </div>
            
            <script language="javascript">

	function check_null_registform(){
		var ok=true;
		if($('#contactform #name').val()==''){
			$("#namemsg").text("Bạn phải nhập vào tên của mình !");
			ok= false;
		}else{
			$("#namemsg").text("");
		}
		if($('#contactform #email').val()==''){
			$("#emailmsg").text("Bạn phải nhập vào địa chỉ email !");
			ok= false;
		}else{
			$("#emailmsg").text("");
		};
		if($("#contactform #email").val()!=''){
			checkEmail = $('#contactform #email').val();
			if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) {
				$("#emailmsg").text("Địa chỉ email không đúng !");
				ok= false;
			} else{
				$("#emailmsg").text("");
			};
		}
		
		if($('#contactform #subject').val()==''){
			$("#subjectmsg").text("Bạn phải nhập vào tiêu đề liên hệ !");
			ok= false;
		}else{
			$("#subjectmsg").text("");
		}
		if($('#contactform #noidung').val()==''){
			$("#messagemsg").text("Bạn phải nhập vào nội dung liên hệ !");
			ok= false;
		}else{
			$("#messagemsg").text("");
		}
		
		
			/*if($('#registerform #dieukhoan').attr('checked')==false){
				alert('Bạn đã không chấp nhận điều khoản !');
				return false;
			}*/
		return ok;
	}
	$(document).ready(function(){
		$("#contactform .textboxfaqright").blur(function(){
			check_null_registform();
		});
	
	});
		

</script>
</div></div>
 <div style="clear:both"></div>
 <div style="padding:5px; text-align:center">{pages}</div>
            	
            